function dev_config() {
  const BASE_URL = 'http://localhost:1920';

  return {
    BASE_URL,
    FILE_PATH_PREFIX: BASE_URL + '/file/preview/'
  }
}

function prod_config() {
  const BASE_URL = 'https://';

  return {
    BASE_URL,
    FILE_PATH_PREFIX: BASE_URL + '/file/preview/'
  }
}


const configs = Object.assign({}, process.env.NODE_ENV === 'development' ? dev_config() : prod_config());

export { configs };

export default {
  install(Vue) {
    Vue.prototype.YD_configs = configs;
  }
}

